package com.yanqu.road.entity.systemgroup;

import java.util.ArrayList;
import java.util.List;

public class OpenDayServerGroup {

    //最小开服天数
    private int openDay;

    //服务器数量
    private int num;

    //区服id
    List<Long> serverIdList = new ArrayList<>();

    public OpenDayServerGroup(int openDay) {
        this.openDay = openDay;
    }

    public int getOpenDay() {
        return openDay;
    }

    public void setOpenDay(int openDay) {
        this.openDay = openDay;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public List<Long> getServerIdList() {
        return serverIdList;
    }

    public void addServerId(long serverId){
        if(!serverIdList.contains(serverId)){
            serverIdList.add(serverId);
        }
    }
}
